package com.bookshop.vo;

import com.bookshop.promotion.logic.PromotionItem;

public class PromotionItemVO implements ValueObject{
	private static final long serialVersionUID = -2971643403268882175L;
	PromotionItem[] mPromotionItems;
	
	public void update(PromotionItem[] pPromotionItems){
		mPromotionItems = pPromotionItems;
	}
	
	public PromotionItem[] getPromotionItems() {
		return mPromotionItems;
	}
	
	@Override
	public String toString(){
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < mPromotionItems.length; i++) {
			sb.append(mPromotionItems[i] + "\n");
		}
		return sb.toString();
	}
}
